-- GENERATED SPELL FOR [Nightmare Scalebane] --


function spell0_5277(pUnit, Event) --@Improved Blocking,Self--
pUnit:FullCastSpellOnTarget(3248,pUnit)
pUnit:RegisterEvent('Sorts_5277', 6287, 1)
end

function Sorts_5277(pUnit, Event)
local choix_sorts_5277 = math.random(0, 0)
if choix_sorts_5277 == 0 then
pUnit:RegisterEvent('spell0_5277', 1, 1)
end
end

function mob5277_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5277', math.random(1500, 3000), 1)
end

function mob5277_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5277_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5277_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5277, 1, 'mob5277_Action')
RegisterUnitEvent(5277, 2, 'mob5277_Leave')
RegisterUnitEvent(5277, 3, 'mob5277_Kill')
RegisterUnitEvent(5277, 4, 'mob5277_Die')
